<template>
	<view>
		<view style="height: 160rpx;box-sizing:border-box; padding-top: 81rpx;background-color: #FF1414;">
		<!-- 	<image src="/static/waimai/返回@2x.png" @click="backTo()" style="margin: 0 259rpx 0 30rpx; width: 18rpx;height: 32rpx;" mode="aspectFit"></image> -->
			<uni-icons type="arrowleft" size="20" color="#FFFFFF" @click="backTo()" style="margin: 0 259rpx 0 30rpx;"></uni-icons>
			<text style="font-size: 32rpx;color: #fff;">提现明细</text>
		</view>
		<view class="tixian_list">
			<view class="tixian_item" v-for="(item, index) in dataList" :key="index">
				<view class="row1">
					<label>提现</label>
					<text>{{item.money}}</text>
				</view>
				<view class="row2">
					<label>提现到银行卡</label>
					<text>{{item.date}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import 
	{ Storage } from '@/static/libs/utils.js'
export default {
	data(){
		return {
			dataList:[
				{
					money:-12,
					date:'05-12  15:30'
				},
				{
					money:200,
					date:'05-12  15:30'
				},
				{
					money:35,
					date:'05-12  15:30'
				}
			]
		}
	},
	onLoad(){
	  this.txRecord()
	},
	methods:{
		//提现记录
		txRecord(){
			this.token = Storage.get('token')
			this.$request.post("/wxapp.php?from=wxapp&c=entry&a=wxapp&do=user&m=lionfish_comshop",{
				controller:'distribution.tixian_record',
				token:this.token,
				page:1
			}).then(res=>{
				console.log('提现记录',res)
			})
		}
	}
}
</script>

<style lang="scss">
.tixian_list {
	margin-top: 14rpx;
}
.tixian_item {
	width: 100%;
	height: 124rpx;
	border-bottom: 2rpx solid #E5E5E5;
	font-family: Source Han Sans CN;
	.row1, .row2 {
		width: 670rpx;
		padding-left: 40rpx;
		padding-right: 40rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}
	.row1 label {
		font-size: 24rpx;
		font-weight: 500;
		color: #1B1B1B;
		margin-top: 33rpx;
	}
	.row1 text {
		font-size: 32rpx;
		font-weight: 400;
		color: #F61B00;
		margin-top: 33rpx;
	}
	.row2 label, .row2 text{
		font-size: 24rpx;
		font-weight: 400;
		color: #999999;
	}
}
</style>
